<?php

	define("CY_DAOGUI_CAPTCHA_OPEN", true);

	define("BINGO_WEIBO", "%URL% ");
	define("APPLY_WEIBO", "%URL% ");
	define("EXCHANGE_WEIBO", "我在#开心赚宝#里用积分兑换了%NAME%。%URL% ");
	define("GOLINK_WEIBO", '%URL%');


	include('cake_env.inc');
	App::import('Core', 'Multibyte');
	require_once(APP.'libs'.DS.'system_properties.php');
	require_once(APP.'libs'.DS.'platform_base.inc'); // $platform_ctl = PlatformBase::get_instance();
	require_once(APP.'libs'.DS.'util.php'); 
	App::import('Vendor','/infolex/rest_wrapper');

	header("Content-type: text/html; charset=utf-8");

	$no_session = Util::start_session_if_need();
	
	$platform_ctl = PlatformBase::get_instance();
	$platform_ctl->index_prepare();

	$Dispatcher = new Dispatcher();
	$Dispatcher->dispatch($url); // Dispatcher->dispatch->_invoke
	